package cn.chrisn.factory.AbstractFactor;



/**
 * @Description 抽象工厂模式
 * @Author Chrisn
 * @Date 2025/4/29
 */
public class AbstractCarFactorTest {
    public static void main(String[] args) {
        BMWFactory bmwFactory = new BMWFactory();
        BenzFactory benzFactory = new BenzFactory();
        bmwFactory.build_B_clasCar().showClassB();
        bmwFactory.build_C_clasCar().showClassC();
        System.out.println("===============");
        benzFactory.build_B_clasCar().showClassB();
        benzFactory.build_C_clasCar().showClassC();
    }
}
